using UnityEngine;
using QFramework;

// 1.请在菜单 编辑器扩展/Namespace Settings 里设置命名空间
// 2.命名空间更改后，生成代码之后，需要把逻辑代码文件（非 Designer）的命名空间手动更改
namespace QFramework.Example
{
	public partial class StormUp : ViewController,ISkill,IController
	{
        public string SkillName => "风暴强化";

        public bool IsUnLocked { get ; set ; }


        private float abilityTime = 0;
        private float playerMoveSpeed = 0;

        public void CallBack()
        {
            abilityTime = DataManager.Instance.stormModel.AbilityAtkTime.Value;
            playerMoveSpeed = DataManager.Instance.playerModel.PlayerMoveSpeed.Value;
            DataManager.Instance.stormModel.AbilityAtkTime.Value = abilityTime + abilityTime * 0.1f;
            DataManager.Instance.playerModel.PlayerMoveSpeed.Value = playerMoveSpeed+playerMoveSpeed*0.1f;
           // throw new System.NotImplementedException();
        }

        public IArchitecture GetArchitecture()
        {
            //throw new System.NotImplementedException();
            return Global.Interface;
        }

        public void RemoveCallBack()
        {
            //DataManager.Instance.stormModel.AbilityAtkTime.Value = DataManager.Instance.table.TBAbilityModel.Get(5).AbilityAtkTime;
            //throw new System.NotImplementedException();
        }

        void Start()
		{
            // Code Here

            CallBack();

        }
	}
}
